import imp
from os import path
from re import VERBOSE
from django.apps import AppConfig

VERBOSE_APP_NAME='注册'

def get_current_app_name(file):
    return path.dirname(file).replace('\\','/').split('/')[-1]

class AppVerboseNameConfig(AppConfig):
    name=get_current_app_name(__file__)
    verbose_name=VERBOSE_APP_NAME

defualt_app_config=get_current_app_name(__file__)+'.__init__.AppVerboseNameConfig'